package com.myapp.ruyixing.http;

import java.util.List;

import org.json.JSONObject;

public class ScoreExchangeListParser extends RYJSONParser {

	@Override
	public Object parse(JSONObject jsonObject) {
		if (getErrno(jsonObject) != NO_ERROR) {
			return null;
		}

		JSONObject data = jsonObject.optJSONObject("data");
		
		ScoreExchangeList o = new ScoreExchangeList();

		if (jsonObject != null) {
			o = loadByGson(data, ScoreExchangeList.class);
		}

		return o;
	}
	
	public static class ScoreExchangeList {
		public List<ScoreExchangeListItem> items;
	}
	
	public static class ScoreExchangeListItem {
		public String changenum;
		public String username;
		public String date;
	}
}
